package cn.example.vip.mall.goods.feign;

import cn.example.vip.mall.util.RespResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

// value : 服务名称，如果是通过url方式的，随便起个名字就行，如果是调用nacos 服务，则填写nacos服务名称
@FeignClient(value = "nginxCache-server", url = "http://web.server.com", path = "/purge", contextId = "other-nginx")
public interface NginxCacheFeign {
	@GetMapping("/sku/adItems/type")
	RespResult updateTypeItems(@RequestParam("id") Integer type);
}
